package allen.ui.log;

import javax.swing.table.DefaultTableCellRenderer;

/**
 * ThrowableRenderer for Throwable.
 * */
class ThrowableRenderer extends DefaultTableCellRenderer {

	private static final long serialVersionUID = 1L;

	public ThrowableRenderer() {
		super();
	}

	public void setValue(Object value) {
		if (value instanceof Throwable) {
			Throwable t = (Throwable) value;
			setText(t.getMessage());
		} else {
			setText("");
		}
	}
}
